package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.ErpSellerStoreProduct;
import com.ruoyi.gather.api.domain.ErpSellerStoreProductExpand;
import com.ruoyi.gather.api.domain.ErpSellerStoreProductSku;
import com.ruoyi.gather.api.domain.dto.PublishInnerAuthDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(contextId = "remoteSellerStoreCommodityRankStatisticsService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteSellerStoreCommodityRankStatisticsService {

    /**
     * 查询周期内的访客量
     * @param aeProductId
     * @param statisticalPeriod
     * @return
     */
    @GetMapping("/seller/sellerStoreCommodityRankStatistics/getVisitorsTotalsByTime/{aeProductId}/{statisticalPeriod}")
    R<Integer> getVisitorsTotalsByTime(@PathVariable("aeProductId") String aeProductId,
                                              @PathVariable("statisticalPeriod") String statisticalPeriod);

    /**
     * 是否出单
     */
    @GetMapping("/seller/sellerStoreCommodityRankStatistics/isOutOrder/{productId}")
    boolean isOutOrder(@PathVariable("productId") Long productId);

}
